<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Zip-based phars</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.fileformat.tar.html">Tar-based phars</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.fileformat.phar.html">Phar File Format</a></div>
 <div class="up"><a href="phar.fileformat.html">What makes a phar a phar and not a tar or a zip?</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="phar.fileformat.zip" class="section">
  <h2 class="title">Zip-based phars</h2>
  <p class="para">
   Archives based on the zip file format support several features built into
   the zip file format.  Per-file and whole-archive metadata is stored in
   the zip file comment and zip archive comment as a serialized string.  Pre-existing
   zip comments will be successfully read as a string.  Per-file compression
   read/write is supported with zlib compression, and read access is supported
   with bzip2 compression.  There is no limit on the number of files
   within a zip-based phar archive.  Empty directories are stored in the zip archive
   as files with a trailing slash like <em>my/directory/</em>
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.fileformat.tar.html">Tar-based phars</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.fileformat.phar.html">Phar File Format</a></div>
 <div class="up"><a href="phar.fileformat.html">What makes a phar a phar and not a tar or a zip?</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
